package com.coldchain.common.vo;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class BizDispatchingVo extends OrderVo implements Serializable {
    private String orderId;
    /**
     * 车型Id
     */
    private Long carTypeId;

    private String driverId;

    /**
     * 温度最高要求
     */
    private Double maxOc;

    /**
     * 车辆温度最低要求
     */
    private Double minOc;

    /**
     * 预约发货时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date runtime;

    /**
     * 订单类型 1 临时用车 2预约用车 3转单
     */
    private Integer orderType;

    private Double predictKm;
    private Double orderKm;
    private Integer exceedKm;

    /**
     * 实际金额
     */
    private BigDecimal amount;
    private BigDecimal totlaPrice;

    /**
     * 货币单位 (默认为RMB)
     */
    private String priceUnit;

    /**
     * 0待支付,1待派遣 2待取货 3.待送达 4.上传回单 ,-1订单失败
     */
    private Integer status;

    /**
     * 错误代码
     */
    private Integer errorCode;

    /**
     * 错误信息
     */
    private String errorMsg;

    /**
     * 订单备注
     */
    private String remark;

    private Integer currentIndex;
    private List<BizPersonVo> persons;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Long getCarTypeId() {
        return carTypeId;
    }

    public void setCarTypeId(Long carTypeId) {
        this.carTypeId = carTypeId;
    }

    public Double getMaxOc() {
        return maxOc;
    }

    public void setMaxOc(Double maxOc) {
        this.maxOc = maxOc;
    }

    public Double getMinOc() {
        return minOc;
    }

    public void setMinOc(Double minOc) {
        this.minOc = minOc;
    }

    public Date getRuntime() {
        return runtime;
    }

    public void setRuntime(Date runtime) {
        this.runtime = runtime;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }


    public String getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(String priceUnit) {
        this.priceUnit = priceUnit;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<BizPersonVo> getPersons() {
        return persons;
    }

    public void setPersons(List<BizPersonVo> persons) {
        this.persons = persons;
    }

    public Double getPredictKm() {
        return predictKm;
    }

    public void setPredictKm(Double predictKm) {
        this.predictKm = predictKm;
    }

    public Double getOrderKm() {
        return orderKm;
    }

    public void setOrderKm(Double orderKm) {
        this.orderKm = orderKm;
    }

    public Integer getExceedKm() {
        return exceedKm;
    }

    public void setExceedKm(Integer exceedKm) {
        this.exceedKm = exceedKm;
    }

    public String getDriverId() {
        return driverId;
    }

    public void setDriverId(String driverId) {
        this.driverId = driverId;
    }

    public BigDecimal getTotlaPrice() {
        return totlaPrice;
    }

    public void setTotlaPrice(BigDecimal totlaPrice) {
        this.totlaPrice = totlaPrice;
    }

    public Integer getCurrentIndex() {
        return currentIndex;
    }

    public void setCurrentIndex(Integer currentIndex) {
        this.currentIndex = currentIndex;
    }
}
